package cn.edu.hqu.cst.android.ls.sensor;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;



public class MainActivity extends AppCompatActivity {

    Button bn1,bn2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button bn1 = (Button) findViewById(R.id.bn1);
        bn1.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                Intent i = new Intent(MainActivity.this , Sensor_Manager.class);
                startActivity(i);
            }
        });

        Button bn2 = (Button) findViewById(R.id.bn2);
        bn1.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                Intent i = new Intent(MainActivity.this , Compass.class);
                startActivity(i);
            }
        });

    }
}




